package com.yanqu.road.entity.log.cross.suitang;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

@FieldTypeAnnotation(tableName = "t_l_ck_suitang_junzi", desc = "逐鹿隋唐-军资征收日志", autoSave = true, uploadCk = true, dataUpload = true, eventName = "chasedeer_levy", isCross = true)
public class LogCrossSuiTangJunZi extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityId")
    private int activityId;
    @FieldTypeAnnotation(desc = "分组ID", isIndex = true, dataAttribute = "chasedeer_groid")
    private int groupId;
    @FieldTypeAnnotation(desc = "战场id", dataAttribute = "chasedeer_battle")
    private long warTypeId;
    @FieldTypeAnnotation(desc = "小组id", dataAttribute = "chasedeer_teamid")
    private long actGroupId;
    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "城池id", dataAttribute = "chasedeer_cityid")
    private int cityId;
    @FieldTypeAnnotation(desc = "获得军资", dataAttribute = "chasedeer_getresource")
    private long junZi;

    public LogCrossSuiTangJunZi(int activityId, int groupId, long warTypeId, long actGroupId, long userId, int cityId, long junZi) {
        this.activityId = activityId;
        this.groupId = groupId;
        this.warTypeId = warTypeId;
        this.actGroupId = actGroupId;
        this.userId = userId;
        this.cityId = cityId;
        this.junZi = junZi;
    }

    @Override
    public long getUserId() {
        return userId;
    }

}
